import mockData from './mockData.json';

const mockQueryPageInfo = async (uuid: string) => {
  return new Promise<{ data: any }>((resolve, reject) => {
    setTimeout(() => {
      resolve({
        data: {
          name: '产品销售明细',
          description: '产品销售明细',
          data_json: JSON.stringify({
            blockList: [],
            dataBaseDict: {
              ebay_market:   {
                name: "Ebay 市场",
                data:[],
                type: "excel",
              }
            },
            locales: {},
          }),

        },
      });
    }, 1000);

  })
};

export const getCSVData = async (databaseKey: string) => {
  return new Promise<{ data: any }>((resolve, reject) => {
    setTimeout(() => {
      resolve({
        data: mockData,
      });
    }, 1000);
  });
};

export { mockQueryPageInfo };
